﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace FooFun.DataElements.Dtos
{
    public class HashtableDataElement : DataElement
    {
        Hashtable table;

        public HashtableDataElement()
        {
            table = new Hashtable();
        }

        public override IDataElement this[string key]
        {
            get
            {
                return new ObjectDataElement(table[key]);
            }
            set
            {
                table[key] = value.Value;
            }
        }
    }
}
